<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>3.6 条件语句</title>
    <script>
        let count = 10;
        out:
            for (var i = 0; i < count; i++) {
                console.log(i);
                if (i === 5) {
                    break out;
                }
            }
        console.log('跳出嵌套 for 循环');

        out1:
            for (let j = 0; j < 10; j++) {
                out2:
                    for (let k = 0; k < 10; k++) {
                        for (let h = 0; h < 10; h++) {
                            if (j === 3) {
                                continue out1;
                            }
//                            if(j === 4){
//                                break out1;
//                            }
                            console.log(`j: ${j} => k: ${k}`);
                        }
                    }
            }
            console.log('.......');



    </script>
</head>
<body>

</body>
</html>